<%-- 
    Document   : login
    Created on : 07/10/2011, 22:21:54
    Author     : Carlos, Edward, Diego, Honorio
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="model.Usuario, dao.UsuarioDAO" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" href="paginas/style.css" type="text/css" media="screen">
        <title>PAGINA DE LOGIN</title>
    </head>

    <jsp:include page="topo.jsp"/>
    <body >

        <div id="content">

            <br><br><br><br>
            <center><img src="imagens/login.gif"></center>  
            <form action="/AirLine/controlador?cmd=autenticarUser" method="post">
                <table style="text-align:left; width: 50%;" border="0" cellpadding="2" cellspacing="2" align="center">
                    <tbody>
                        <tr>
                            <td style="vertical-align: top; text-align: right;">Login:</td>
                            <td style="vertical-align: top;"><input type="text" name="login"></td>
                        </tr>
                        <tr>
                            <td style="vertical-align: top; text-align: right;">Senha: </td>
                            <td style="vertical-align: top;"><input type="password" name="senha"></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td><input type="submit" value="Autenticar">
                            <input type="reset" value="Limpar"></td>
                        </tr>
 <%
    String line = "<tr>  <td><br></td>  <td><br></td>  </tr>" +
                    "<tr>  <td style=\"text-align: center;\" colspan=\"2\" rowspan=\"1\">";
    String msg = (String) request.getAttribute("msg");
    if (msg != null && !msg.equals("")) {
        line += "<font color=\"red\">" + msg + "</font>";
        line += "</td>  </tr>";
        out.print(line);
    }
%>
                    </tbody>
                </table>
            </form>
        </div>
    </body>
    <jsp:include page="rodape.jsp"/>
</html>
